Re: [GENERAL] primary key

Поиск
Список
Период
Сортировка
От Herouth Maoz
Тема Re: [GENERAL] primary key
Дата
Msg-id l03110708b21c4949fde6@[147.233.159.109]
обсуждение исходный текст
Ответ на primary key  (Andrea Antibo <antibo@mclink.it>)
Список pgsql-general
At 16:35 +0200 on 9/9/98, Andrea Antibo wrote:


> CREATE TABLE films (
>        code      CHARACTER(5) CONSTRAINT firstkey PRIMARY KEY,
>        title     CHARACTER VARYING(40) NOT NULL,
>        did      DECIMAL(3) NOT NULL,
>        date_prod DATE,
>        kind     CHAR(10),
>        len       INTERVAL HOUR TO MINUTE     );
>
>
> but I have error near CONSTRAINT.
>
> Maybe this version of postgres can't accept the primary key?

True. No primary keys in 6.2.x. Just create a unique index on the code
field after creating the table (preferably, after loading data, if there is
any).

Herouth

--
Herouth Maoz, Internet developer.
Open University of Israel - Telem project
http://telem.openu.ac.il/~herutma



В списке pgsql-general по дате отправления:

Предыдущее
От: Andrea Antibo
Дата:
Сообщение: primary key
Следующее
От: Sferacarta Software
Дата:
Сообщение: Re: [GENERAL] primary key